package com.javaEE.tes.services;

import com.javaEE.tes.dao.CourseSelectionRepository;
import com.javaEE.tes.dao.dto.CourseSelectionDto;
import com.javaEE.tes.dao.dto.StudentClass1;
import com.javaEE.tes.entities.CourseSelection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseSelectionService {
    @Autowired
    CourseSelectionRepository courseSelectionRepository;
    public CourseSelection save(CourseSelection courseSelection){
        return courseSelectionRepository.save(courseSelection);
    }
    public List<CourseSelection> getAll(){return courseSelectionRepository.findAll();}
    public  List<CourseSelectionDto> courseSelection(){return courseSelectionRepository.courseSelection();}
}
